package xin.mashibo.pattern.interpreter;

/**
 * @author MaShibo
 * 日期 :  2019/1/29
 */
public class ProgramNode implements Node {

    private Node commandListNode;

    @Override
    public void parse(Context context) throws ParseException {
        context.skipToken("program");
        commandListNode = new CommandListNode();
        commandListNode.parse(context);
    }

    @Override
    public String toString() {
        return "[program " + commandListNode + "]";
    }
}
